Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redux-devtools-extension

Package Overview
Dependencies
Maintainers
4
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-devtools-extension

Wrappers for Redux DevTools Extension.

  • 2.13.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created

What is redux-devtools-extension?

The redux-devtools-extension package is a powerful tool for debugging Redux applications. It provides a set of tools to help developers track state changes, actions, and store updates in real-time, making it easier to understand and debug the state management in their applications.

What are redux-devtools-extension's main functionalities?

Time Travel Debugging

Time travel debugging allows developers to go back and forth through the state changes, making it easier to identify where things went wrong. The code sample shows how to integrate the Redux DevTools Extension with a Redux store using the `composeWithDevTools` function.

import { createStore } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';

const store = createStore(reducer, composeWithDevTools());

Action Logging

Action logging provides a detailed log of all actions dispatched to the store, along with the state before and after each action. The code sample demonstrates dispatching an action and how it would be logged by the Redux DevTools Extension.

import { createStore } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';

const store = createStore(reducer, composeWithDevTools());

store.dispatch({ type: 'INCREMENT' });

State Inspection

State inspection allows developers to view the current state of the Redux store at any point in time. The code sample shows how to create a store and log its current state, which can be inspected using the Redux DevTools Extension.

import { createStore } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';

const store = createStore(reducer, composeWithDevTools());

console.log(store.getState());

Other packages similar to redux-devtools-extension

FAQs

Package last updated on 06 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc